//
//  String+JChat.swift
//  FeastBooking
//
//  Created by Imon on 2017/11/12.
//  Copyright © 2017年 Imon. All rights reserved.
//

import Foundation

extension String {
    
    public func trim(trimNewline: Bool = false) ->String {
        if trimNewline {
            return self.trimmingCharacters(in: .whitespacesAndNewlines)
        }
        return self.trimmingCharacters(in: .whitespaces)
    }
}
